package com.cndongtai.constant;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class SystemConstant {

	public static final String LANGUAGE = "LANGUAGE";
	
	public static final String FILE_FIRMWARE_PATH;
	
	static{
		// 读取配置文件
		Properties properties = new Properties();
		InputStream inputStream = null;
		try {
			inputStream = SystemConstant.class.getClassLoader().getResourceAsStream("com/cndongtai/conf/property/config.properties");
			properties.load(inputStream);  
		}catch (Exception e) {  
		}finally {
			if(null != inputStream) {
				try {
					inputStream.close();
				} catch (IOException e) {
				}
			}
		}

		// 固件文件存放目录
		FILE_FIRMWARE_PATH = properties.getProperty("file.firmware.path");
		
	}
	
}
